package com.tianji.learning.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(description = "修改笔记")
public class NoteUpdateDto {
    @ApiModelProperty("笔记内容")
    @NotNull(message = "笔记内容不能为空")
    private String content;

    @ApiModelProperty("是否私密")
    @NotNull(message = "是否私密不能为空")
    private Boolean isPrivate;
}
